//
//  SoundManager.h
//  BoardGames
//
//  Created by Enric Vergara Carreras on 03/02/12.
//  Copyright (c) 2012 empresa. All rights reserved.
//

#ifndef BoardGames_SoundManager_h
#define BoardGames_SoundManager_h


//-------------NEW TYPE DEFINES---------
typedef enum  
{
    SOUND_BUTTON_NEXT,
    SOUND_BUTTON_BACK,
    SOUND_BUTTON_CANCEL,
    SOUND_BUTTON_SHOW_CARDS,
    SOUND_GAME_OVER,
    SOUND_YOU_WIN,
    SOUND_MAIN_MENU_LOOP,
    SOUND_SECOND_MENU_LOOP
}TypeSound;


@interface SoundManager : NSObject 
{
    NSDictionary    *m_Sounds;
    float           m_fSoundFXVolume;
}


- (id)      init;
- (void)    initSoundManager;

- (void)    playEffect:(TypeSound) internal_id;
- (void)    playMusic:(TypeSound) internal_id loop:(bool) l;
- (void)    stopMusic;
- (void)    setSoundFXVolume:(float) volume;
- (float)   getGeneralSoundFXVolume;


//------ SINGLETON METHODS---------
+ (SoundManager*)   sharedInstance;
+ (id)              allocWithZone:(NSZone *)zone;
- (id)              copyWithZone:(NSZone *)zone;
- (id)              retain;
- (unsigned)        retainCount;
- (void)            release;
- (id)              autorelease;
//----------------------------------

@end


#endif
